package com.example.supermonkeysm.security.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@Data
@TableName("menus")
@AllArgsConstructor
@NoArgsConstructor
public class Menu {
    private Integer id;
    private Integer pId;
    private String path;
    private String redirect;
    private String component;
    private String icon;
    private String title;
    private Integer sort;
    @TableField(exist = false)
    private List<Menu> children;
}